#ifndef LOGGIN_H
#define LOGGIN_H

#include <QWidget>
#include <QLineEdit>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>

class LogginWidget: public QWidget
{
    Q_OBJECT

public:
    LogginWidget(QWidget* parent=nullptr);
    ~LogginWidget();

    static bool iss_server_connected;

public slots:
    void connect_iss_server_check();

private:
    QGridLayout* m_layout = nullptr;
    QLabel* m_iss_server = nullptr;
    QLabel* m_iss_server_ip_label = nullptr;
    QLineEdit* m_iss_server_ip_line = nullptr;

    QLabel* m_iss_server_ip_port = nullptr;
    QLineEdit* m_iss_server_port = nullptr;

    QLabel* m_iss_user_name = nullptr;
    QLineEdit* m_iss_user_name_line = nullptr;

    QLabel* m_iss_user_passwd = nullptr;
    QLineEdit* m_iss_user_passwd_line = nullptr;

    QPushButton* m_connect = nullptr;
};

#endif // LOGGIN_H
